package com.xy.novelmanagement.service;

import com.xy.model.Catalog;
import com.xy.model.CatalogContent;
import com.xy.model.Novel;

import java.util.List;
import java.util.Map;

public interface INovelAddService {
    List<Catalog> getCatalogsByName(String novelName);

    String addCatalogByFile(String catalogName, String novelName, String toString);

    String addCatalog(String novelName, String catalogName, String content);

    String saveNovel(String novelName, String author, String intro, String novelType, Map<String, List<String>> catalogs);

    void saveCatalogMsg(Catalog catalog);

    void saveCatalogContent(CatalogContent content);

    void saveNovel1(Novel novel);

    void saveNovelType(String bookName, String novelType);

    Novel getNovelByName(String bookName);

    void updateWords(Integer bookWords,String bookName);
}
